﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Browser;

namespace EditorialAdministration
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            // Required to initialize variables
            
            InitializeComponent();
        }

        private void btnSmallIcon_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            // TODO: Add event handler implementation here.
            var story = (Storyboard)this.Resources["ShowIcon"];
            story.Begin();
        }

        private void btnListIcon_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            // TODO: Add event handler implementation here.
            var story = (Storyboard)this.Resources["ShowList"];
            story.Begin();
        }

        private void HyperlinkButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
            string script = string.Format(@"UpdateAppDetailsWithRA('{0}');", "Verification Tool");
            HtmlPage.Window.Eval(script);
        }

        private void HyperlinkButton2_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
            Uri appUri;
            Uri.TryCreate(HtmlPage.Document.DocumentUri, "RequestAccess.aspx", out appUri);
            HtmlPage.Window.Navigate(appUri);
        }

    }
}